search for: num_doubles

Displaying 5 results from an estimated 5 matches for "num_doubles".

2013 Nov 03
3
[LLVMdev] freeing alloca'd variables before function exits
Hi, In my llvm code I want to create some function calls. The function prototype is as follows: int memoize ( char *function_name, int *int_params, unsigned num_ints, double *double_params, unsigned num_doubles) In order to create these calls I do the following for example: %88 = alloca [7 x i8] store volatile [7 x i8] c"ORACLE\00", [7 x i8]* %88 %89 = getelementptr [7 x i8]* %88, i32 0, i32 0 %90 = alloca [1 x i32] %91 = getelementptr inbounds [1 x i32]* %90, i32 0, i32 0 store...
2013 Nov 04
0
[LLVMdev] freeing alloca'd variables before function exits
...4889 at yahoo.com> wrote: > Hi, > > In my llvm code I want to create some function calls. The function > prototype is as follows: > > int memoize ( char *function_name, > int *int_params, unsigned num_ints, > double *double_params, unsigned num_doubles) > > In order to create these calls I do the following for example: > > %88 = *alloca* [7 x i8] > store volatile [7 x i8] c"ORACLE\00", [7 x i8]* %88 > %89 = getelementptr [7 x i8]* %88, i32 0, i32 0 > > %90 = *alloca* [1 x i32] > %91 = getelementptr i...
2009 May 12
0
[PATCH 1/2] btrfs-progs: mixed back ref support
...ct btrfs_disk_key disk_key; struct extent_buffer *l; u32 nritems; int mid; int slot; struct extent_buffer *right; - int space_needed = data_size + sizeof(struct btrfs_item); - int data_copy_size; - int rt_data_off; - int i; int ret = 0; int wret; - int double_split; + int split; int num_doubles = 0; - struct btrfs_disk_key disk_key; - - if (extend && data_size) - space_needed = data_size; /* first try to make some room by pushing left and right */ if (data_size && ins_key->type != BTRFS_DIR_ITEM_KEY) { wret = push_leaf_right(trans, root, path, data_size, 0); -...
2010 Sep 03
0
[PATCH 1/2] btrfs: document where we use BUG_ON instead of error handling
..., 1); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); } clean_tree_block(trans, root, buf); *last_ref = 1; @@ -3094,7 +3094,7 @@ again: } ret = copy_for_split(trans, root, path, l, right, slot, mid, nritems); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); if (split == 2) { BUG_ON(num_doubles != 0); @@ -3307,7 +3307,7 @@ int btrfs_duplicate_item(struct btrfs_trans_handle *trans, ret = setup_items_for_insert(trans, root, path, new_key, &item_size, item_size, item_size + sizeof(struct btrfs_item), 1); - BUG_ON(ret); + btrfs_fixable_bug_on(ret); leaf = path-&g...
2011 Oct 04
68
[patch 00/65] Error handling patchset v3
Hi all - Here''s my current error handling patchset, against 3.1-rc8. Almost all of this patchset is preparing for actual error handling. Before we start in on that work, I''m trying to reduce the surface we need to worry about. It turns out that there is a ton of code that returns an error code but never actually reports an error. The patchset has grown to 65 patches. 46 of them