Home
last modified time | relevance | path

Searched refs:swap_bits (Results 1 – 25 of 96) sorted by relevance

1234

/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/bit_reverse-0.1.7/src/
H A Dmacros.rs5 fn swap_bits(self) -> i8 {
6 $Algo::swap_bits(self as u8) as i8
12 fn swap_bits(self) -> i16 {
13 $Algo::swap_bits(self as u16) as i16
19 fn swap_bits(self) -> i32 {
20 $Algo::swap_bits(self as u32) as i32
26 fn swap_bits(self) -> i64 {
27 $Algo::swap_bits(self as u64) as i64
33 fn swap_bits(self) -> isize {
44 assert_eq!(0xABu8.swap_bits(), 0xD5u8);
[all …]
H A Dlookup.rs6 fn swap_bits(self) -> T; in swap_bits() method
30 fn swap_bits(self) -> u8 { in swap_bits() method
37 fn swap_bits(self) -> u16 { in swap_bits() method
47 fn swap_bits(self) -> u32 { in swap_bits() method
59 fn swap_bits(self) -> u64 { in swap_bits() method
76 fn swap_bits(self) -> usize { in swap_bits() method
78 LookupReverse::swap_bits(self as u8) as usize in swap_bits()
83 fn swap_bits(self) -> usize { in swap_bits() method
85 LookupReverse::swap_bits(self as u16) as usize in swap_bits()
90 fn swap_bits(self) -> usize { in swap_bits() method
[all …]
H A Dbitwise.rs6 fn swap_bits(self) -> T; in swap_bits() method
17 fn swap_bits(self) -> $ty {
H A Dparallel.rs6 fn swap_bits(self) -> T; in swap_bits() method
12 fn swap_bits(self) -> $ty {
/dports/www/geckodriver/mozilla-central-e9783a644016aa9b317887076618425586730d73/testing/geckodriver/cargo-crates/bit_reverse-0.1.7/benches/
H A Dprimitives.rs29 num = num.swap_bits();
43 num = num.swap_bits();
57 num = num.swap_bits();
71 num = num.swap_bits();
85 num = num.swap_bits();
99 num = num.swap_bits();
113 num = num.swap_bits();
127 num = num.swap_bits();
141 num = num.swap_bits();
155 num = num.swap_bits();
/dports/multimedia/v4l_compat/linux-5.13-rc2/lib/
H A Dbch.c154 if (!bch->swap_bits) in swap_bits()
172 u8 tmp = swap_bits(bch, *data++); in bch_encode_unaligned()
196 swap_bits(bch, src[3]); in load_ecc8()
201 ((u32)swap_bits(bch, pad[2]) << 8) | in load_ecc8()
202 swap_bits(bch, pad[3]); in load_ecc8()
218 *dst++ = swap_bits(bch, src[i]); in store_ecc8()
295 if (bch->swap_bits) in bch_encode()
296 w = (u32)swap_bits(bch, w) | in bch_encode()
1108 if (!bch->swap_bits) in bch_decode()
1320 bool swap_bits) in bch_init() argument
[all …]
/dports/multimedia/libv4l/linux-5.13-rc2/lib/
H A Dbch.c154 if (!bch->swap_bits) in swap_bits()
172 u8 tmp = swap_bits(bch, *data++); in bch_encode_unaligned()
196 swap_bits(bch, src[3]); in load_ecc8()
201 ((u32)swap_bits(bch, pad[2]) << 8) | in load_ecc8()
202 swap_bits(bch, pad[3]); in load_ecc8()
218 *dst++ = swap_bits(bch, src[i]); in store_ecc8()
295 if (bch->swap_bits) in bch_encode()
296 w = (u32)swap_bits(bch, w) | in bch_encode()
1108 if (!bch->swap_bits) in bch_decode()
1320 bool swap_bits) in bch_init() argument
[all …]
/dports/multimedia/v4l-utils/linux-5.13-rc2/lib/
H A Dbch.c154 if (!bch->swap_bits) in swap_bits()
172 u8 tmp = swap_bits(bch, *data++); in bch_encode_unaligned()
196 swap_bits(bch, src[3]); in load_ecc8()
201 ((u32)swap_bits(bch, pad[2]) << 8) | in load_ecc8()
202 swap_bits(bch, pad[3]); in load_ecc8()
218 *dst++ = swap_bits(bch, src[i]); in store_ecc8()
295 if (bch->swap_bits) in bch_encode()
296 w = (u32)swap_bits(bch, w) | in bch_encode()
1108 if (!bch->swap_bits) in bch_decode()
1320 bool swap_bits) in bch_init() argument
[all …]
/dports/editors/encryptpad/EncryptPad-0.5.0.1/deps/botan/src/lib/block/aes/
H A Daes.cpp368 swap_bits<uint32_t>(B[1], B[0], 0x55555555, 1); in bit_transpose()
369 swap_bits<uint32_t>(B[3], B[2], 0x55555555, 1); in bit_transpose()
370 swap_bits<uint32_t>(B[5], B[4], 0x55555555, 1); in bit_transpose()
371 swap_bits<uint32_t>(B[7], B[6], 0x55555555, 1); in bit_transpose()
373 swap_bits<uint32_t>(B[2], B[0], 0x33333333, 2); in bit_transpose()
374 swap_bits<uint32_t>(B[3], B[1], 0x33333333, 2); in bit_transpose()
375 swap_bits<uint32_t>(B[6], B[4], 0x33333333, 2); in bit_transpose()
376 swap_bits<uint32_t>(B[7], B[5], 0x33333333, 2); in bit_transpose()
378 swap_bits<uint32_t>(B[4], B[0], 0x0F0F0F0F, 4); in bit_transpose()
379 swap_bits<uint32_t>(B[5], B[1], 0x0F0F0F0F, 4); in bit_transpose()
[all …]
/dports/security/botan2/Botan-2.18.2/src/lib/block/aes/
H A Daes.cpp368 swap_bits<uint32_t>(B[1], B[0], 0x55555555, 1); in bit_transpose()
369 swap_bits<uint32_t>(B[3], B[2], 0x55555555, 1); in bit_transpose()
370 swap_bits<uint32_t>(B[5], B[4], 0x55555555, 1); in bit_transpose()
371 swap_bits<uint32_t>(B[7], B[6], 0x55555555, 1); in bit_transpose()
373 swap_bits<uint32_t>(B[2], B[0], 0x33333333, 2); in bit_transpose()
374 swap_bits<uint32_t>(B[3], B[1], 0x33333333, 2); in bit_transpose()
375 swap_bits<uint32_t>(B[6], B[4], 0x33333333, 2); in bit_transpose()
376 swap_bits<uint32_t>(B[7], B[5], 0x33333333, 2); in bit_transpose()
378 swap_bits<uint32_t>(B[4], B[0], 0x0F0F0F0F, 4); in bit_transpose()
379 swap_bits<uint32_t>(B[5], B[1], 0x0F0F0F0F, 4); in bit_transpose()
[all …]
/dports/mail/thunderbird/thunderbird-91.8.0/comm/third_party/botan/src/lib/block/aes/
H A Daes.cpp368 swap_bits<uint32_t>(B[1], B[0], 0x55555555, 1); in bit_transpose()
369 swap_bits<uint32_t>(B[3], B[2], 0x55555555, 1); in bit_transpose()
370 swap_bits<uint32_t>(B[5], B[4], 0x55555555, 1); in bit_transpose()
371 swap_bits<uint32_t>(B[7], B[6], 0x55555555, 1); in bit_transpose()
373 swap_bits<uint32_t>(B[2], B[0], 0x33333333, 2); in bit_transpose()
374 swap_bits<uint32_t>(B[3], B[1], 0x33333333, 2); in bit_transpose()
375 swap_bits<uint32_t>(B[6], B[4], 0x33333333, 2); in bit_transpose()
376 swap_bits<uint32_t>(B[7], B[5], 0x33333333, 2); in bit_transpose()
378 swap_bits<uint32_t>(B[4], B[0], 0x0F0F0F0F, 4); in bit_transpose()
379 swap_bits<uint32_t>(B[5], B[1], 0x0F0F0F0F, 4); in bit_transpose()
[all …]
/dports/multimedia/v4l_compat/linux-5.13-rc2/include/linux/
H A Dbch.h55 bool swap_bits; member
59 bool swap_bits);
/dports/multimedia/libv4l/linux-5.13-rc2/include/linux/
H A Dbch.h55 bool swap_bits; member
59 bool swap_bits);
/dports/multimedia/v4l-utils/linux-5.13-rc2/include/linux/
H A Dbch.h55 bool swap_bits; member
59 bool swap_bits);
/dports/comms/libticables2/libticables2-1.3.5/src/win32/
H A Dlink_par.c306 #define swap_bits(a) (((a&2)>>1) | ((a&1)<<1)) // swap the 2 lowest bits macro
310 int v = swap_bits(io_rd(lpt_in) >> 4); in par_set_red_wire()
326 int v = swap_bits(io_rd(lpt_in) >> 4); in par_set_white_wire()
352 io_wr(lpt_out, swap_bits(state)); in par_set_raw()
H A Dlink_ser.c335 #define swap_bits(a) (((a&2)>>1) | ((a&1)<<1)) // swap the 2 lowest bits macro
339 int v = swap_bits(io_rd(com_in) >> 4); in ser_set_red_wire()
355 int v = swap_bits(io_rd(com_in) >> 4); in ser_set_white_wire()
381 io_wr(com_out, swap_bits(state)); in ser_set_raw()
/dports/comms/libticables2/libticables2-1.3.5/src/linux/
H A Dlink_par.c311 #define swap_bits(a) (((a&2)>>1) | ((a&1)<<1)) // swap the 2 lowest bits macro
315 int v = swap_bits(par_io_rd(dev_fd) >> 4); in par_set_red_wire()
331 int v = swap_bits(par_io_rd(dev_fd) >> 4); in par_set_white_wire()
357 par_io_wr(dev_fd, swap_bits(state)); in par_set_raw()
H A Dlink_ser.c327 #define swap_bits(a) (((a&2)>>1) | ((a&1)<<1)) // swap the 2 lowest bits macro
331 int v = swap_bits(ser_io_rd(dev_fd) >> 4); in ser_set_red_wire()
347 int v = swap_bits(ser_io_rd(dev_fd) >> 4); in ser_set_white_wire()
373 ser_io_wr(dev_fd, swap_bits(state)); in ser_set_raw()
/dports/emulators/qemu-utils/qemu-4.2.1/roms/u-boot/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/emulators/qemu5/qemu-5.2.0/roms/u-boot/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/sysutils/u-boot-nanopi-neo2/u-boot-2021.07/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/sysutils/u-boot-olimex-a20-som-evb/u-boot-2021.07/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/sysutils/u-boot-olinuxino-lime2/u-boot-2021.07/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/sysutils/u-boot-nanopi-r4s/u-boot-2021.07/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()
/dports/sysutils/u-boot-olinuxino-lime/u-boot-2021.07/tools/
H A Dsunxi-spl-image-builder.c35 static void swap_bits(uint8_t *buf, int len) in swap_bits() function
215 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
217 swap_bits(buffer, info->ecc_step_size + 4); in write_page()
218 swap_bits(ecc, eccbytes); in write_page()

1234