IAP GITLAB

Skip to content
Snippets Groups Projects
Commit d6c61144 authored by Dominik Baack's avatar Dominik Baack Committed by ralfulrich
Browse files

Removed sgn.hpp with only on (invalid) use in the codebase

parent 24b199cb
No related branches found
No related tags found
No related merge requests found
/*
* (c) Copyright 2018 CORSIKA Project, corsika-project@lists.kit.edu
*
*
* This software is distributed under the terms of the GNU General Public
* Licence version 3 (GPL Version 3). See file LICENSE for a full version of
* the license.
*/
#pragma once
namespace corsika {
//! sign function without branches
template <typename T>
static int sgn(T val) {
return (T(0) < val) - (val < T(0));
}
} // namespace corsika
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment