summaryrefslogtreecommitdiff
path: root/fpemulation.c
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2008-11-17 20:43:00 +0000
committerMatt Turner <mattst88@gmail.com>2008-11-17 20:43:00 +0000
commitd064ec35868720e0f29c1fe53a6e688333e71736 (patch)
tree3662aad3e5a9b536de44a3d85a8720ea06812ba9 /fpemulation.c
parent10a5d62de08035803b5fadc5fcd32c873f8b1702 (diff)
Remove malloc return checks. Since they're in loops, they don't prevent memory from being leaked after the first iteration. Plus, when does malloc fail?
git-svn-id: svn://mattst88.com/svn/cleanbench/trunk@78 0d43b9a7-5ab2-4d7b-af9d-f64450cef757
Diffstat (limited to 'fpemulation.c')
-rw-r--r--fpemulation.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/fpemulation.c b/fpemulation.c
index 2a0d849..ac92099 100644
--- a/fpemulation.c
+++ b/fpemulation.c
@@ -40,7 +40,6 @@ static void SetupCPUEmFloatArrays(InternalFPF *abase, InternalFPF *bbase);
double
DoEmFloat(void)
{
- const char* context = "CPU:Floating Emulation";
InternalFPF* abase = NULL;
InternalFPF* bbase = NULL;
InternalFPF* cbase = NULL;
@@ -50,26 +49,10 @@ DoEmFloat(void)
static long loops = 1;
abase = malloc(ARRAY_SIZE * sizeof(InternalFPF));
- if (!abase) {
- printf("ERROR CONDITION\nContext: %s\n", context);
- exit(1);
- }
-
bbase = malloc(ARRAY_SIZE * sizeof(InternalFPF));
- if (!bbase) {
- printf("ERROR CONDITION\nContext: %s\n", context);
- free(abase);
- exit(1);
- }
cbase = malloc(ARRAY_SIZE * sizeof(InternalFPF));
- if (!cbase) {
- printf("ERROR CONDITION\nContext: %s\n", context);
- free(abase);
- free(bbase);
- exit(1);
- }
SetupCPUEmFloatArrays(abase, bbase); /* FIXME: ugly */