diff options
author | Dave Airlie <[email protected]> | 2012-02-28 10:43:14 +0000 |
---|---|---|
committer | Dave Airlie <[email protected]> | 2012-02-28 10:43:14 +0000 |
commit | a46548e0effa45d31b536c1af97b8dcacbe2db8e (patch) | |
tree | a807fa26f38146510a613d9fa817368064698632 /src/gallium/auxiliary | |
parent | aec11e4daa36fb31774971ce34f04e3ebeeeeed7 (diff) |
gallivm: add frem support to the lp_build_mod helper.
for completeness.
Signed-off-by: Dave Airlie <[email protected]>
Diffstat (limited to 'src/gallium/auxiliary')
-rw-r--r-- | src/gallium/auxiliary/gallivm/lp_bld_arit.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/auxiliary/gallivm/lp_bld_arit.c b/src/gallium/auxiliary/gallivm/lp_bld_arit.c index 65fc1809913..60018447e02 100644 --- a/src/gallium/auxiliary/gallivm/lp_bld_arit.c +++ b/src/gallium/auxiliary/gallivm/lp_bld_arit.c @@ -2565,10 +2565,11 @@ lp_build_mod(struct lp_build_context *bld, LLVMValueRef res; const struct lp_type type = bld->type; - assert(type.floating); assert(lp_check_value(type, x)); assert(lp_check_value(type, y)); + if (type.floating) + res = LLVMBuildFRem(builder, x, y, ""); if (type.sign) res = LLVMBuildSRem(builder, x, y, ""); else |