JinwoongKim / Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture

Homepage
http://jinwoongkim.github.io/Massively-Parallel-Query-Processing-on-Heterogeneous-Architecture/
1 stars 2 forks source link

Use std::ceil #52

Open JinwoongKim opened 8 years ago

JinwoongKim commented 8 years ago

These kind of codes make it hard to read, try to use std::ceil instead

leaf_node_soa_count = ((number_of_data%GetNumberOfDegrees())?1:0)  + number_of_data/GetNumberOfDegrees();
#include <math.h>
leaf_node_soa_count = std::ceil(number_of_data/GetNumberOfDegrees());