search for: _hash

Displaying 4 results from an estimated 4 matches for "_hash".

Did you mean: hash
2015 Oct 29
6
[RFC][libcxx] Fix and maintain the no-exceptions build of libcxx
...ceptions build as well. I have a work-in-progress patch for this, I will put it up for review separately once I'm done with it. Note that it's not just the tests that need to be updated. For example, take unordered_map::at(key) definition: template <class _Key, class _Tp, class _Hash, class _Pred, class _Alloc> _Tp& unordered_map<_Key, _Tp, _Hash, _Pred, _Alloc>::at(const key_type& __k) { iterator __i = find(__k); #ifndef _LIBCPP_NO_EXCEPTIONS if (__i == end()) throw out_of_range("unordered_map::at: key not found"); #endif...
2018 Sep 25
2
bpf compilation using clang
...that have gone through this rule (skb->cb[1] != 0) from others. */ #define PIN_GLOBAL_NS 2 #define KEY_IDX 0 #define BPF_MAP_ID_KEY 1 struct vlan_hdr { __be16 h_vlan_TCI; __be16 h_vlan_encapsulated_proto; }; struct virtio_net_hdr_rss { __u32 rss_hash_function; __u32 hash_function_flags; uint8_t rss_hash_key[40]; __u32 rss_indirection_table_length; uint8_t rss_indirection_table[128]; }; struct bpf_elf_map __attribute__((section("maps"), used)) map_rss = { .type = BPF_MAP_TYPE_ARRAY, .id...
2006 Jul 12
5
DRY version of RoR book PAYMENT_TYPES example
In the book there is an example how to convert DB payment value to more readable from. PAYMENT_TYPES array is defined and then in your views you can use it as Order::PAYMENT_TYPES. The problem is: how should I convert DB values (for example with type char(1)) to full string representation. I know that I can add a Hash to a model: IM = {''S'' => ''Skype'',
2018 Sep 13
4
bpf compilation using clang
...ough the compilation succeeds. I have multiple maps in my code and I translate only the code section to bpf insns structure and insert it using the bpf syscall as follows: memset(&attr, 0, sizeof(attr)); attr.prog_type = BPF_PROG_TYPE_SOCKET_FILTER; attr.insn_cnt = ARRAY_SIZE(l3_l4_hash_insns); attr.insns = (__u64) (unsigned long) (l3_l4_hash_insns); attr.license = (__u64) (unsigned long) ("Dual BSD/GPL"); attr.log_buf = (__u64) (unsigned long) (buffer); attr.log_level = 7; attr.log_size = BUFF_LEN; attr.kern_version = 0; ret = sys_bpf(BPF_PR...